package org.jjliu.example.entity;

import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

@Entity
public class Article extends BaseEntity{
	
	String title;
	String content;
	@ManyToOne
	@JoinColumn
	Admin admin;
	MyType type;
	
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	public Admin getAdmin() {
		return admin;
	}
	public void setAdmin(Admin admin) {
		this.admin = admin;
	}
	
	public MyType getType() {
		return type;
	}
	public void setType(MyType type) {
		this.type = type;
	}
	@Override
	public String toString() {
		return "Article [title=" + title + ", content=" + content + "]";
	}
	
	
	
}
